package com.zjff.show.zjffshow.service;

import com.zjff.show.zjffshow.entity.PrevenientDao;
import com.zjff.show.zjffshow.entity.UserDao;
import com.zjff.show.zjffshow.impl.PrevenientImpl;
import com.zjff.show.zjffshow.impl.UserImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrevenientService {
    @Autowired(required = false)
    PrevenientImpl prevenientimpl;



    public List<PrevenientDao> getPrevenientList(int id, String Pwd, int Start, int Page, String Phone, String Address){//获取列表
        return prevenientimpl.getPrevenientList(id,Pwd,Start,Page,Phone,Address);
    }
    public int getPrevenientCount(){//获取用户数量
        return prevenientimpl.getPrevenientCount();
    }

    public int addPrevenient(PrevenientDao prevenientDao){
        return prevenientimpl.addPrevenient(prevenientDao);
    }

}

